// Package config @author dingrui @since 2021/11/28
package config

const (
	UserPrizeMax = 3000   // 用户每天最多抽奖次数
	IpPrizeMax   = 30000  // 同一个IP每天最多抽奖次数
	IpLimitMax   = 300000 // 同一个IP每天最多抽奖次数

	GtypeCodeDiff  = 2 // 虚拟券，不同的码
	GtypeGiftSmall = 3 // 实物小奖
	GtypeGiftLarge = 4 // 实物大奖
)

// 定义24小时的奖品分配权重
var PrizeDataRandomDayTime = [100]int{
	// 24 * 3 = 72   平均3%的机会
	// 100 - 72 = 28 剩余28%的机会
	// 7 * 4 = 28    剩下的分别给7个时段增加4%的机会
	0, 0, 0,
	1, 1, 1,
	2, 2, 2,
	3, 3, 3,
	4, 4, 4,
	5, 5, 5,
	6, 6, 6,
	7, 7, 7,
	8, 8, 8,
	9, 9, 9, 9, 9, 9, 9,
	10, 10, 10, 10, 10, 10, 10,
	11, 11, 11,
	12, 12, 12,
	13, 13, 13,
	14, 14, 14,
	15, 15, 15, 15, 15, 15, 15,
	16, 16, 16, 16, 16, 16, 16,
	17, 17, 17, 17, 17, 17, 17,
	18, 18, 18,
	19, 19, 19,
	20, 20, 20, 20, 20, 20, 20,
	21, 21, 21, 21, 21, 21, 21,
	22, 22, 22,
	23, 23, 23,
}
